﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;


using MBSDAL;

namespace MBSBLC
{
   public partial class BLC
    {
       public DataSet GetMovieReport(int movie,string fromdate,string toDate)
       {
           try
           {
               DataSet dsReport = new DataSet();
               MBSDAL.DataAccess objDataAccess = new MBSDAL.DataAccess();
               dsReport = objDataAccess.GetMovieReport(movie, fromdate, toDate);
               if (dsReport != null)
               {
                   return dsReport;
               }
               else
               {
                   return null;
               }
           }
           catch(Exception ex)
           {
               return null;
           }
       }
       public DataSet GetFoodCategoryWiseRep(string fromdate, string toDate)
       {
           try
           {
               DataSet dsReport = new DataSet();
               MBSDAL.DataAccess objDataAccess = new MBSDAL.DataAccess();
               dsReport = objDataAccess.GetFoodCategoryWiseRep(fromdate, toDate);
               if (dsReport != null)
               {
                   return dsReport;
               }
               else
               {
                   return null;
               }
           }
           catch (Exception ex)
           {
               return null;
           }
       }
       public DataSet GetMovieGenreWiseReport(string startdate,string endDate)
       {
           try
           {
               DataSet dsReport = new DataSet();
               MBSDAL.DataAccess objDataAccess = new MBSDAL.DataAccess();
               dsReport = objDataAccess.GetMovieGenreWiseReport(startdate, endDate);
               if (dsReport != null)
               {
                   return dsReport;
               }
               else
               {
                   return null;
               }
           }
           catch (Exception ex)
           {
               return null;
           }
       }
    }
}
